package com.svs.framework.base.mybatis.annotation;

public enum QueryType {
	
	  	EQ("=","",""),
	    NE("!=","",""),
	    GT(">","",""),
	    GTE(">=","",""),
	    LT("<","",""),
	    LTE("<=","",""),
	    IN("IN","",""),
	    NOT_IN("NOT IN","",""),
	    LIKE("LIKE", "%", "%"),
	    LEFT_LIKE("LIKE", "%", ""),
	    RIGHT_LIKE("LIKE", "", "%"),
	    IS_NULL("IS NULL","",""),
	    IS_NOT_NULL("IS NOT NULL","","")
//
//	    // 强制条件，不管值是不是空字符串都加载这个查询条件
//	    EQ_FORCE("=", true),
//	    NE_FORCE("!=", true) 

	    ;
	QueryType(String operator,String valuePrefix,String valueSuffux) {
		this.operator = operator;
		this.valuePrefix = valuePrefix;
		this.valueSuffux = valueSuffux;
	}
	
	private final String valuePrefix;
	private final String operator;
//	private final Boolean isForce;
	private final String valueSuffux;
	public String getValuePrefix() {
		return valuePrefix;
	}
	public String getOperator() {
		return operator;
	}
//	public Boolean getIsForce() {
//		return isForce;
//	}
	public String getValueSuffux() {
		return valueSuffux;
	}
	
	
}
